package com.wn.product;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @author yellow Docter
 * @date 2023 -07-25
 * @desc
 *  测试 direct 交换机
 *
 */
@SpringBootTest
public class RabbitMQTest03 {

    @Autowired
    private Product03 product03;

    @Test
    public void demo01(){

       product03.send("error","饿了,吃饭了吗");
       product03.send("info","v50 吃饭");
       product03.send("warning","面试题准备不好、饿几顿...");

    }
}